/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_bed_deviceabstractionDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression name;

    public T_bed_deviceabstractionDetachedCriteria() {
	super(
		org.testis.orm.classes.T_bed_deviceabstraction.class,
		org.testis.orm.classes.T_bed_deviceabstractionCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_bed_deviceabstractionDetachedCriteria(
	    DetachedCriteria aDetachedCriteria) {
	super(
		aDetachedCriteria,
		org.testis.orm.classes.T_bed_deviceabstractionCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
    }

    public T_bed_devicedefinitionsDetachedCriteria createT_bed_devicedefinitionsCriteria() {
	return new T_bed_devicedefinitionsDetachedCriteria(
		createCriteria("ORM_T_bed_devicedefinitions"));
    }

    public T_dmap_abstract_objectsDetachedCriteria createT_dmap_abstract_objectsCriteria() {
	return new T_dmap_abstract_objectsDetachedCriteria(
		createCriteria("ORM_T_dmap_abstract_objects"));
    }

    public T_bed_deviceabstraction uniqueT_bed_deviceabstraction(
	    PersistentSession session) {
	return (T_bed_deviceabstraction) super
		.createExecutableCriteria(session).uniqueResult();
    }

    public T_bed_deviceabstraction[] listT_bed_deviceabstraction(
	    PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_bed_deviceabstraction[]) list
		.toArray(new T_bed_deviceabstraction[list.size()]);
    }
}
